package com.zzg.srb.core.service;

import com.zzg.srb.core.entity.bo.TransFlowBo;
import com.zzg.srb.core.entity.pojo.TransFlow;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 交易流水表 服务类
 * </p>
 *
 * @author zhengzg
 * @since 2022-05-27
 */
public interface TransFlowService extends IService<TransFlow> {

    /**
     * 保存流水信息
     * @param transFlowBO
     */
    void saveTransFlow(TransFlowBo transFlowBO);

    /**
     * 判断流水是否存在
     * @param agentBillNo
     * @return
     */
    boolean isSaveTransFlow(String agentBillNo);

    List<TransFlow> selectByUserId(Long userId);

}
